//
//  FireControlCheckViewController.m
//  Qihuo
//
//  Created by Vencoo on 13-12-31.
//  Copyright (c) 2013年 Vencoo. All rights reserved.
//

#import "FireControlCheckViewController.h"
#import "CarManageCheckCell.h"
@interface FireControlCheckViewController ()

@end

@implementation FireControlCheckViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    self.checkNames = @[@"检测结果",@"   结论   "];
    self.checkURL = resultOfFireControl;
    [super viewDidLoad];
    self.title = @"消防系统联动测试检查报告";
	// Do any additional setup after loading the view.
}
#pragma mark - UITableViewDataSource
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return self.floorNames.count;
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
//    NSString *identifier = [NSString stringWithFormat:@"cell%d",indexPath.row];
    static NSString *identifier = @"cell";
    CarManageCheckCell *cell = [tableView dequeueReusableCellWithIdentifier:identifier];
    if (!cell)
    {
        cell = [[CarManageCheckCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:identifier];
    }
    cell.selectionStyle = UITableViewCellSelectionStyleNone;

    cell.longFloorNameLb.text = [self.floorNames objectAtIndex:indexPath.row];
    cell.resultLb.text = [self.floorResults objectAtIndex:indexPath.row];
    cell.processLb.text = [self.floorContents objectAtIndex:indexPath.row];

    return cell;
}
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
    UITableViewCell *cell = [self tableView:tableView cellForRowAtIndexPath:indexPath];
    return cell.frame.size.height;
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
